package org.yaac.shared;

import static com.google.common.collect.Sets.newHashSet;

import java.util.Set;



public interface SharedConstants {

	/**
	 * all data used internally in Yaac will use this namespace 
	 */
	public static final String NAMESPACE = "agR0ZXN0chALEgNNYXgiB0NvcnJpbmUM";
	
	public static interface Datastore {
		public static final String KEY_RESERVED_NAME = "__key__";
		
		public static final String SCATTER_RESERVED_NAME = "__scatter__";
		
		public static final String SELECT_ALL_ASTERISK = "*";
	}

	public static interface Blobstore {
		public static final String BLOB_INFO_KIND = "__BlobInfo__";
		
		public static final String BLOB_INFO_CONTENT_TYPE = "content_type";
		
		public static final String BLOB_INFO_CREATION = "creation";
		
		public static final String BLOB_INFO_FILENAME = "filename";
		
		public static final String BLOB_INFO_SIZE = "size";
		
		public static final String BLOB_INFO_MD5_HASH = "md5_hash";
		
		public static final Set<String> BLOB_INFO_ALL_PROPERTIES = newHashSet(BLOB_INFO_CONTENT_TYPE,
				BLOB_INFO_CREATION, BLOB_INFO_FILENAME, BLOB_INFO_SIZE, BLOB_INFO_MD5_HASH);
		
		public static final int BLOB_PAGE_SIZE = 1000;
	}
	
	public static interface User {
		public static final String DEFAULT_AUTH_DOMAIN = "gmail.com";
	}
}
